home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / idl / nsIHttpProtocolHandler.idl < prev    next >
Text File  |  2006-05-08  |  5KB  |  159 lines

  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
  2. /* ***** BEGIN LICENSE BLOCK *****
  3.  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4.  *
  5.  * The contents of this file are subject to the Mozilla Public License Version
  6.  * 1.1 (the "License"); you may not use this file except in compliance with
  7.  * the License. You may obtain a copy of the License at
  8.  * http://www.mozilla.org/MPL/
  9.  *
  10.  * Software distributed under the License is distributed on an "AS IS" basis,
  11.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12.  * for the specific language governing rights and limitations under the
  13.  * License.
  14.  *
  15.  * The Original Code is Mozilla.
  16.  *
  17.  * The Initial Developer of the Original Code is
  18.  * Netscape Communications.
  19.  * Portions created by the Initial Developer are Copyright (C) 2001
  20.  * the Initial Developer. All Rights Reserved.
  21.  *
  22.  * Contributor(s):
  23.  *   Gagan Saksena <gagan@netscape.com> (original author)
  24.  *   Darin Fisher <darin@netscape.com>
  25.  *
  26.  * Alternatively, the contents of this file may be used under the terms of
  27.  * either the GNU General Public License Version 2 or later (the "GPL"), or
  28.  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  29.  * in which case the provisions of the GPL or the LGPL are applicable instead
  30.  * of those above. If you wish to allow use of your version of this file only
  31.  * under the terms of either the GPL or the LGPL, and not to allow others to
  32.  * use your version of this file under the terms of the MPL, indicate your
  33.  * decision by deleting the provisions above and replace them with the notice
  34.  * and other provisions required by the GPL or the LGPL. If you do not delete
  35.  * the provisions above, a recipient may use your version of this file under
  36.  * the terms of any one of the MPL, the GPL or the LGPL.
  37.  *
  38.  * ***** END LICENSE BLOCK ***** */
  39.  
  40. #include "nsIProxiedProtocolHandler.idl"
  41.  
  42. [scriptable, uuid(122c91c0-2485-40ba-89c9-b895934921bc)]
  43. interface nsIHttpProtocolHandler : nsIProxiedProtocolHandler
  44. {
  45.     /**
  46.      * Get the HTTP advertised user agent string.
  47.      */
  48.     readonly attribute ACString userAgent;
  49.  
  50.     /**
  51.      * Get the application name.
  52.      *
  53.      * @return The name of this application (eg. "Mozilla").
  54.      */
  55.     readonly attribute ACString appName;
  56.  
  57.     /**
  58.      * Get the application version string.
  59.      *
  60.      * @return The complete version (major and minor) string. (eg. "5.0")
  61.      */
  62.     readonly attribute ACString appVersion;
  63.  
  64.     /**
  65.      * @return The vendor name.
  66.      */
  67.     attribute ACString vendor;
  68.  
  69.     /**
  70.      * @return The vendor sub string.
  71.      */
  72.     attribute ACString vendorSub;
  73.     
  74.     /**
  75.      * @return The vendor comment.
  76.      */
  77.     attribute ACString vendorComment;
  78.  
  79.     /**
  80.      * @return The product name.
  81.      */
  82.     attribute ACString product;
  83.  
  84.     /**
  85.      * @return A product sub string.
  86.      */
  87.     attribute ACString productSub;
  88.  
  89.     /**
  90.      * @return A product comment.
  91.      */
  92.     attribute ACString productComment;
  93.  
  94.     /**
  95.      * Get the current platform.
  96.      *
  97.      * @return The platform this application is running on
  98.      *           (eg. "Windows", "Macintosh", "X11")
  99.      */
  100.     readonly attribute ACString platform;
  101.  
  102.     /**
  103.      * Get the current oscpu.
  104.      *
  105.      * @return The oscpu this application is running on
  106.      */
  107.     readonly attribute ACString oscpu;
  108.  
  109.     /**
  110.      * Get the translation of the application. The value for language
  111.      * is usually a 2-letter code such as "en" and occasionally a 
  112.      * five-character code to indicate a language subtype, such as "zh_CN". 
  113.      */
  114.     attribute ACString language;
  115.  
  116.     /**
  117.      * Get/Set the application comment misc portion.
  118.      */
  119.     attribute ACString misc;
  120. };
  121.  
  122. %{C++
  123. /**
  124.  * At initialization time, the HTTP handler will initialize each service
  125.  * registered under this category:
  126.  */
  127. #define NS_HTTP_STARTUP_CATEGORY "http-startup-category"
  128.  
  129. /**
  130.  * nsIObserver notification corresponding to startup category.  Services
  131.  * registered under the startup category will receive this observer topic at
  132.  * startup if they implement nsIObserver.  The "subject" of the notification
  133.  * is the nsIHttpProtocolHandler instance.
  134.  */
  135. #define NS_HTTP_STARTUP_TOPIC "http-startup"
  136.  
  137. /**
  138.  * Before an HTTP request is sent to the server, this observer topic is
  139.  * notified.  The observer of this topic can then choose to set any additional
  140.  * headers for this request before the request is actually sent to the server.
  141.  * The "subject" of the notification is the nsIHttpChannel instance.
  142.  */
  143. #define NS_HTTP_ON_MODIFY_REQUEST_TOPIC "http-on-modify-request"
  144.  
  145. /**
  146.  * After an HTTP server response is received, this observer topic is notified.
  147.  * The observer of this topic can interrogate the response.  The "subject" of
  148.  * the notification is the nsIHttpChannel instance.
  149.  */
  150. #define NS_HTTP_ON_EXAMINE_RESPONSE_TOPIC "http-on-examine-response"
  151.  
  152. /**
  153.  * The observer of this topic is notified after the received HTTP response
  154.  * is merged with data from the browser cache.  This means that, among other
  155.  * things, the Content-Type header will be set correctly.
  156.  */
  157. #define NS_HTTP_ON_EXAMINE_MERGED_RESPONSE_TOPIC "http-on-examine-merged-response"
  158. %}
  159.